package BinaryTreeTest;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-05-17
 * Time: 14:41
 */
public class TreeTest {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createBinaryTree();
        binaryTree.prevOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
//        BinaryTree.TreeNode  treeNode =binaryTree.find(root,'H');
//        System.out.println(treeNode.val);
//        binaryTree.levelOrder(root);
//        System.out.println();
        System.out.println(binaryTree.isCompleteTree(root));
    }
}
